<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>山西煤炭现货公路交易系统客户端</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/bootstrap/css/bootstrap.min.css">
<!-- 日期范围-->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/plugins/daterangepicker/daterangepicker-bs3.1.css">
<script src="<s:url value="/resources"/>/adminlte/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="<s:url value="/resources"/>/adminlte/bootstrap/js/bootstrap.min.js"></script>
<script src="<s:url value="/resources"/>/adminlte/plugins/daterangepicker/moment2.9.0.js"></script>
<script src="<s:url value="/resources"/>/adminlte/plugins/daterangepicker/daterangepicker1.3.6.js"></script>
<!-- 日期范围-->	
<!-- Ionicons -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/ionicons/css/ionicons.min.css">
<!-- jvectormap -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
<!-- Theme style -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/skins/_all-skins.min.css">
<!-- DataTables -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/plugins/datatables/dataTables.bootstrap.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
     folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/skins/_all-skins.min.css">
<!-- 2016.8.19查询加样式 -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/css/custom.css">

<!-- AdminLTE App -->
<script src="<s:url value="/resources"/>/adminlte/dist/js/app.min.js"></script>
<!-- Select2 -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/plugins/select2/select2.css">
<!-- Theme style -->
<link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/AdminLTE.min.css">
<!-- DataTables -->
<script src="<s:url value="/resources"/>/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<s:url value="/resources"/>/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- Select2 -->
<script src="<s:url value="/resources"/>/adminlte/plugins/select2/select2.full.min.js"></script>
<script src="<s:url value="/resources"/>/adminlte/plugins/select2/i18n/zh-CN.js"></script>
<script src="<s:url value="/resources"/>/adminlte/default.js"></script>
<script src="<s:url value="/resources"/>/adminlte/default_logistical.js"></script>



<script type="text/javascript">
$(function(){
	 dataTab("dataTab",true,false,false,false,true,false,"<s:url value="/resources"/>/adminlte/dataTabBootstrapCN.json");
	 loadMenu("${user.roleType}","${menuid}",${menuList});
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selFaz","fazs","sumFanz");//发运站点
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selDaoz","daozs","sumDaoz");//到达站点
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selShouhr","shouhrs","sumShouhr");//收货人
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selTuoyr","tuoyrs","sumTuoyr");//托运人
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selFasdq","fasdqs","sumFasdq");//发送地区
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selDaoddq","daoddqs","sumDaoddq");//到达地区
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selShi","shis","sumShi");//到站所属市
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selLuj","lujs","sumLuj");//发货路局
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selHuowmc","huowmcs","sumHuowmc");//货物名称
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selDaoj","daojs","sumDaoj");//到局
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selHangy1","hangy1s","sumHangy1");//所属行业
	 getSelOpts("<s:url value="/"/>/logistical/getSelOpts","selHangy2","hangy2s","sumHangy2");//行业细分
	 $(".select2").select2();
	 var choose =$("a.choose");
	 for(var i=0;i<choose.length;i++){
		 var id = $("a.choose")[i].id.substring(6);
		 var idFlg = id+"Flg";
		 //var valueFlg = document.getElementById(idFlg).value;
		 //if(valueFlg == "1"){
			 //change("choose"+id+"1","choose"+id,i);
		 //}
	 }
});
function submitSum(formid,searchType){
	document.getElementById("searchFlg").value="1";
	document.getElementById("searchType").value=searchType;
	document.getElementById(formid).submit();
}
//点击查询条件改变条件选择，和数据表列
function changeChoose(obj,num){
	 if(obj.className=="choose"){
		 obj.className="";
		 if(parseInt(num)!=11&&parseInt(num)!=12&&parseInt(num)!=16&&parseInt(num)!=17&&parseInt(num)!=18&&parseInt(num)!=19){
	 		 document.getElementById(obj.id+"1").style.display="none";
		 }
		document.getElementById(obj.id.substring(6)+"Flg").value="0";
		 disshow(num);
	 }else{
		 obj.className="choose";
		document.getElementById(obj.id.substring(6)+"Flg").value="1";
		 if(parseInt(num)!=11&&parseInt(num)!=12&&parseInt(num)!=16&&parseInt(num)!=17&&parseInt(num)!=18&&parseInt(num)!=19){
	 		 document.getElementById(obj.id+"1").style.display="block";
		 }
		 show(num);
	 }
 }
//点击条件选择的删除，改变查询条件和数据表列
function change(obj,choose,num){
	 document.getElementById(obj).style.display="none";
	 document.getElementById(choose).className="";
	 document.getElementById(choose.substring(6)+"Flg").value="0";
	 disshow(num);
}
function show(i){//speed:三种预定速度之一的字符串("slow","normal", or "fast")或表示动画时长的毫秒数值(如：1000)
	if($('table tr').find('td:eq('+parseInt(i)+')').css("display")=="none") {
		$('table tr').find('td:eq('+parseInt(i)+')').toggle();
	}
	if($('table tr').find('th:eq('+parseInt(i)+')').css("display")=="none") {
		$('table tr').find('th:eq('+parseInt(i)+')').toggle();
	}
}
	 function disshow(i){
	 	if($('table tr').find('td:eq('+parseInt(i)+')').css("display")!="none") {
		 	$('table tr').find('td:eq('+parseInt(i)+')').hide();
	 	}
	 	if($('table tr').find('th:eq('+parseInt(i)+')').css("display")!="none") {
		 	$('table tr').find('th:eq('+parseInt(i)+')').hide();
	 	}
	 }
</script>
</head>
<body class="skin-blue sidebar-mini">
<input type="hidden" id="activeValue" name="activeValue"/>
<div class="wrapper">
<%@ include file="../../header.jsp" %>
<%@ include file="../../sidebar.jsp" %>
<div class="content-wrapper">
<form id="form" action="<s:url value="/"/>/logistical/railwaySum?searchFlg=1" method="post">
        <div class="content-header">
          <h1>物流分析<small>物流综合查询</small></h1>
          <ol class="breadcrumb">
            <li><a href="<s:url value="/"/>/index.jsp"><i class="fa fa-dashboard"></i>首页</a></li>
            <li><a href="#" id="location1"></a></li>
          <li class="active" id="location2"></li>
          </ol>
        </div>
         <!-- 8.23 物流查询新页面 开始 -->
        <!-- Main content-->
        <div class="content">
          <div class="box  box-default">
	        <input type="hidden" value='${searchFlg}' name="searchFlg" id ="searchFlg"/>
	        <input type="hidden" value='${searchType}' name="searchType" id ="searchType"/>
	        <input type="hidden" value='${monthFlg}' name="monthFlg" id ="monthFlg"/>
	        
	        <input type="hidden" value='${selFaz}' name="selFaz" id ="selFaz"/>
	        <input type="hidden" value='${selDaoz}' name="selDaoz" id ="selDaoz"/>
	        <input type="hidden" value='${selShouhr}' name="selShouhr" id ="selShouhr"/>
	        <input type="hidden" value='${selTuoyr}' name="selTuoyr" id ="selTuoyr"/>
	        <input type="hidden" value='${selFasdq}' name="selFasdq" id ="selFasdq"/>
	        <input type="hidden" value='${selDaoddq}' name="selDaoddq" id ="selDaoddq"/>
	        <input type="hidden" value='${selShi}' name="selShi" id ="selShi"/>
	        <input type="hidden" value='${selLuj}' name="selLuj" id ="selLuj"/>
	        <input type="hidden" value='${selHuowmc}' name="selHuowmc" id ="selHuowmc"/>
	        <input type="hidden" value='${selDaoj}' name="selDaoj" id ="selDaoj"/>
	        <input type="hidden" value='${selHangy1}' name="selHangy1" id ="selHangy1"/>
	        <input type="hidden" value='${selHangy2}' name="selHangy2" id ="selHangy2"/>
	        
	        <input type="hidden" value='${fazFlg}' name="FazFlg" id ="FazFlg"/>
	        <input type="hidden" value='${daozFlg}' name="DaozFlg" id ="DaozFlg"/>
	        <input type="hidden" value='${shouhrFlg}' name="ShouhrFlg" id ="ShouhrFlg"/>
	        <input type="hidden" value='${tuoyrFlg}' name="TuoyrFlg" id ="TuoyrFlg"/>
	        <input type="hidden" value='${fasdqFlg}' name="FasdqFlg" id ="FasdqFlg"/>
	        <input type="hidden" value='${daoddqFlg}' name="DaoddqFlg" id ="DaoddqFlg"/>
	         <input type="hidden" value='${shiFlg}' name="ShiFlg" id ="ShiFlg"/>
	        <input type="hidden" value='${wanccsFlg}' name="WanccsFlg" id ="WanccsFlg"/>
	        <input type="hidden" value='${wancdsFlg}' name="WancdsFlg" id ="WancdsFlg"/>
	        <input type="hidden" value='${fahljFlg}' name="FahljFlg" id ="FahljFlg"/>
	        <input type="hidden" value='${huowmcFlg}' name="HuowmcFlg" id ="HuowmcFlg"/>
	        <input type="hidden" value='${daojFlg}' name="DaojFlg" id ="DaojFlg"/>
	        <input type="hidden" value='${hangy1Flg}' name="Hangy1Flg" id ="Hangy1Flg"/>
	        <input type="hidden" value='${hangy2Flg}' name="Hangy2Flg" id ="Hangy2Flg"/>
	        <input type="hidden" value='${shoulcsFlg}' name="ShoulcsFlg" id ="ShoulcsFlg"/>
	        <input type="hidden" value='${shouldsFlg}' name="ShouldsFlg" id ="ShouldsFlg"/>
	        <input type="hidden" value='${xuqcsFlg}' name="XuqcsFlg" id ="XuqcsFlg"/>
	        <input type="hidden" value='${xuqdsFlg}' name="XuqdsFlg" id ="XuqdsFlg"/>
              <div class="box-body">
                <h4>查询条件</h4>
                <div class="wuliu_search_head">
                	<a id="chooseFahlj"<c:if test="${fahljFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,2)">发货路局</a>
                    <a id="chooseDaoj"<c:if test="${daojFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,3)">到货路局</a>
                    <a id="chooseFaz"<c:if test="${fazFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,4)">发运站点</a>
                    <a id="chooseDaoz"<c:if test="${daozFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,5)">到达站点</a>
                    <a id="chooseFasdq"<c:if test="${fasdqFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,6)">发送地区</a>
                    <a id="chooseDaoddq"<c:if test="${daoddqFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,7)">到站所属省</a>
                    <a id="chooseShi"<c:if test="${shiFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,8)">到站所属市</a>
                    <a id="chooseShouhr"<c:if test="${shouhrFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,9)">收货人</a>
                    <a id="chooseTuoyr"<c:if test="${tuoyrFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,10)">托运人</a>
                    <a id="chooseWanccs"<c:if test="${wanccsFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,11)">完成车数</a>
                    <a id="chooseWancds"<c:if test="${wancdsFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,12)">完成吨数</a>
                  <p><a onclick="openShutManager(this,'box4',false,'点击关闭','点击展开')">点击展开</a></p>
                  <br /><br />
                  <p id="box4" style="display:none">
                    
                    <a id="chooseHangy1"<c:if test="${hangy1Flg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,13)">所属行业</a>
                    <a id="chooseHangy2"<c:if test="${hangy2Flg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,14)">行业细分</a>
                    <a id="chooseHuowmc"<c:if test="${huowmcFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,15)">货物名称</a>
                    <a id="chooseShoulcs"<c:if test="${shoulcsFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,16)">受理车数</a>
                    <a id="chooseShoulds"<c:if test="${shouldsFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,17)">受理吨数</a>
                    <a id="chooseXuqcs"<c:if test="${xuqcsFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,18)">需求车数</a>
                    <a id="chooseXuqds"<c:if test="${xuqdsFlg eq '1'}"> class="choose"</c:if> onclick="changeChoose(this,19)">需求吨数</a>
                  </p>
                </div>
                <!--查询条件结束 条件选择开始-->
                 <h4>条件选择</h4>
                <div class="row"><!-- /.col -->
                	<c:choose>
                     	<c:when test="${fahljFlg eq '1'}">
	                     	<div class="col-md-25" id="chooseFahlj1">
		                      <div class="form-group">
		                        <label>发货路局</label>
		                        <select id="lujs" name="lujs" class="form-control select2" multiple="multiple" data-placeholder="请选择发货路局" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseFahlj1','chooseFahlj',2)">删除</a> </div>
                     	</c:when>
                         <c:otherwise>
	                         <div class="col-md-25" id="chooseFahlj1" style="display: none;">
		                      <div class="form-group">
		                        <label>发货路局</label>
		                        <select id="lujs" name="lujs" class="form-control select2" multiple="multiple" data-placeholder="请选择发货路局" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseFahlj1','chooseFahlj',2)">删除</a> </div>
			   			</c:otherwise>
                  </c:choose>
                  <c:choose>
                     	<c:when test="${daojFlg eq '1'}">
	                     	<div class="col-md-25" id="chooseDaoj1">
		                      <div class="form-group">
		                        <label>到货路局</label>
		                        <select id="daojs" name="daojs" class="form-control select2" multiple="multiple" data-placeholder="请选择到局" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseDaoj1','chooseDaoj',3)">删除</a> 
		                    </div>
                     	</c:when>
                         <c:otherwise>
                             <div class="col-md-25" id="chooseDaoj1" style="display: none;">
		                      <div class="form-group">
		                        <label>到货路局</label>
		                        <select id="daojs" name="daojs" class="form-control select2" multiple="multiple" data-placeholder="请选择到局" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseDaoj1','chooseDaoj',3)">删除</a> 
		                    </div>
			   			</c:otherwise>
                  </c:choose>
                	<c:choose>
                     	<c:when test="${fazFlg eq '1'}">
                     		<div class="col-md-25" id="chooseFaz1">
			                     <div class="form-group">
			                       <label>发运站点</label>
			                       <select id="fazs" name="fazs" class="form-control select2" multiple="multiple" data-placeholder="请选择发运站点" style="width:220px;height:25px;" >
				                  	</select>
			                     </div>
			                     <a onclick="change('chooseFaz1','chooseFaz',4)">删除</a>
			                  </div>
                     	</c:when>
                         <c:otherwise>
                         	<div class="col-md-25" id="chooseFaz1" style="display: none;">
			                     <div class="form-group">
			                       <label>发运站点</label>
			                       <select id="fazs" name="fazs" class="form-control select2" multiple="multiple" data-placeholder="请选择发运站点" style="width:220px;height:25px;" >
				                  	</select>
			                     </div>
			                     <a onclick="change('chooseFaz1','chooseFaz',4)">删除</a>
			                  </div>
			   			</c:otherwise>
                  </c:choose>
                  	<c:choose>
                     	<c:when test="${daozFlg eq '1'}">
		                  <div class="col-md-25" id="chooseDaoz1">
		                       <div class="form-group">
		                         <label>到达站点</label>
		                         <select id="daozs" name="daozs" class="form-control select2" multiple="multiple" data-placeholder="请选择到达站点" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseDaoz1','chooseDaoz',5)">删除</a>
		                  </div>
                     	</c:when>
                         <c:otherwise>
               		       <div class="col-md-25" id="chooseDaoz1" style="display: none;">
		                       <div class="form-group">
		                         <label>到达站点</label>
		                         <select id="daozs" name="daozs" class="form-control select2" multiple="multiple" data-placeholder="请选择到达站点" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseDaoz1','chooseDaoz',5)">删除</a>
		                  </div>
			   			</c:otherwise>
                  </c:choose>
                  	
                  	<c:choose>
                     	<c:when test="${fasdqFlg eq '1'}">
                     	<div class="col-md-25" id="chooseFasdq1" >
		                    <div class="form-group">
		                      <label>发送地区</label>
		                      <select id="fasdqs" name="fasdqs" class="form-control select2" multiple="multiple" data-placeholder="请选择发送地区" style="width:220px;height:25px;" >
			                  	</select>
		                     </div>
		                     <a onclick="change('chooseFasdq1','chooseFasdq',6)">删除</a>
		                  </div>
                     	</c:when>
                         <c:otherwise>
                         <div class="col-md-25" id="chooseFasdq1"  style="display: none;">
		                    <div class="form-group">
		                      <label>发送地区</label>
		                      <select id="fasdqs" name="fasdqs" class="form-control select2"  multiple="multiple" data-placeholder="请选择发送地区" style="width:220px;height:25px;" >
			                  	</select>
		                     </div>
		                     <a onclick="change('chooseFasdq1','chooseFasdq',6)">删除</a>
		                  </div>
			   			</c:otherwise>
                  </c:choose>
                  	<c:choose>
                     	<c:when test="${daoddqFlg eq '1'}">
                     		<div class="col-md-25" id="chooseDaoddq1">
		                       <div class="form-group">
		                         <label>到站所属省</label>
		                          <select id="daoddqs" name="daoddqs" class="form-control select2" multiple="multiple" data-placeholder="请选择到达地区" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseDaoddq1','chooseDaoddq',7)">删除</a>
		                  </div>
                     	</c:when>
                         <c:otherwise>
	                         <div class="col-md-25" id="chooseDaoddq1" style="display: none;">
		                       <div class="form-group">
		                         <label>到站所属省</label>
		                          <select id="daoddqs" name="daoddqs" class="form-control select2" multiple="multiple" data-placeholder="请选择到达地区" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseDaoddq1','chooseDaoddq',7)">删除</a>
		                  </div>
			   			</c:otherwise>
                  </c:choose>
                  <c:choose>
                     	<c:when test="${shiFlg eq '1'}">
                     		<div class="col-md-25" id="chooseShi1">
		                       <div class="form-group">
		                         <label>到站所属市</label>
		                          <select id="shis" name="shis" class="form-control select2" multiple="multiple" data-placeholder="请选择到站所属市" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseShi1','chooseShi',8)">删除</a>
		                  </div>
                     	</c:when>
                         <c:otherwise>
	                         <div class="col-md-25" id="chooseShi1" style="display: none;">
		                       <div class="form-group">
		                         <label>到站所属市</label>
		                          <select id="shis" name="shis" class="form-control select2" multiple="multiple" data-placeholder="请选择到站所属市" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseShi1','chooseShi',8)">删除</a>
		                  </div>
			   			</c:otherwise>
                  </c:choose>
                  	<c:choose>
                     	<c:when test="${hangy1Flg eq '1'}">
	                     	<div class="col-md-25" id="chooseHangy11">
		                      <div class="form-group">
		                        <label>所属行业</label>
		                        <select id="hangy1s" name="hangy1s" class="form-control select2" multiple="multiple" data-placeholder="请选择所属行业" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseHangy11','chooseHangy1',13)">删除</a> 
		                    </div>
                     	</c:when>
                         <c:otherwise>
	                         <div class="col-md-25" id="chooseHangy11" style="display: none;">
			                      <div class="form-group">
			                        <label>所属行业</label>
			                        <select id="hangy1s" name="hangy1s" class="form-control select2" multiple="multiple" data-placeholder="请选择所属行业" style="width:220px;height:25px;" >
				                  	</select>
			                      </div>
			                      <a onclick="change('chooseHangy11','chooseHangy1',13)">删除</a> 
			                    </div>
			   			</c:otherwise>
                  </c:choose>
                  <c:choose>
                     	<c:when test="${hangy2Flg eq '1'}">
                     		<div class="col-md-25" id="chooseHangy21">
		                      <div class="form-group">
		                        <label>行业细分</label>
		                        <select id="hangy2s" name="hangy2s" class="form-control select2" multiple="multiple" data-placeholder="请选择行业细分" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseHangy21','chooseHangy2',14)">删除</a> 
		                    </div>
                     	</c:when>
                         <c:otherwise>
                         	<div class="col-md-25" id="chooseHangy21" style="display: none;">
		                      <div class="form-group">
		                        <label>行业细分</label>
		                        <select id="hangy2s" name="hangy2s" class="form-control select2" multiple="multiple" data-placeholder="请选择行业细分" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseHangy21','chooseHangy2',14)">删除</a> 
		                    </div>
			   			</c:otherwise>
                  </c:choose>
                  	<c:choose>
                     	<c:when test="${huowmcFlg eq '1'}">
	                     	<div class="col-md-25" id="chooseHuowmc1">
		                      <div class="form-group" >
		                        <label>货物名称</label>
		                        <select id="huowmcs" name="huowmcs" class="form-control select2" multiple="multiple" data-placeholder="请选择货物名称" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseHuowmc1','chooseHuowmc',15)">删除</a> 
		                    </div>
                     	</c:when>
                         <c:otherwise>
	                         <div class="col-md-25" id="chooseHuowmc1" style="display: none;">
		                      <div class="form-group" >
		                        <label>货物名称</label>
		                        <select id="huowmcs" name="huowmcs" class="form-control select2" multiple="multiple" data-placeholder="请选择货物名称" style="width:220px;height:25px;" >
			                  	</select>
		                      </div>
		                      <a onclick="change('chooseHuowmc1','chooseHuowmc',15)">删除</a> 
		                    </div>
			   			</c:otherwise>
                  </c:choose>
                  
                  
                  <div class="clearfix"></div>
                  <div id="wrap5">
                  
                  <c:choose>
                     	<c:when test="${shouhrFlg eq '1'}">
                     	<div class="col-md-26" id="chooseShouhr1">
		                       <div class="form-group">
		                         <label>收货人</label>
		                         <select id="shouhrs" name="shouhrs" class="form-control select2" style="width:300px;" multiple="multiple" data-placeholder="请选择收货人" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseShouhr1','chooseShouhr',9)">删除</a>
		                  </div>
                     	</c:when>
                         <c:otherwise>
                         <div class="col-md-26" id="chooseShouhr1"  style="display: none;">
		                       <div class="form-group">
		                         <label>收货人</label>
		                         <select id="shouhrs" name="shouhrs" class="form-control select2" style="width:300px;" multiple="multiple" data-placeholder="请选择收货人" style="width:220px;height:25px;" >
			                  	</select>
		                       </div>
		                       <a onclick="change('chooseShouhr1','chooseShouhr',9)">删除</a>
		                  </div>
			   			</c:otherwise>
                  </c:choose>
                  	<c:choose>
                     	<c:when test="${tuoyrFlg eq '1'}">
                     		<div class="col-md-26"  id="chooseTuoyr1" style="padding-bottom: 20px;">
			                       <div class="form-group">
			                         <label>托运人</label>
			                         <select id="tuoyrs" name="tuoyrs" class="form-control select2" style="width:300px;" multiple="multiple" data-placeholder="请选择托运人" style="width:220px;height:25px;" >
				                  	</select>
			                       </div>
			                       <a onclick="change('chooseTuoyr1','chooseTuoyr',10)">删除</a>
			                  </div>
                     	</c:when>
                         <c:otherwise>
                         	<div class="col-md-26"  id="chooseTuoyr1" style="display: none;">
			                       <div class="form-group">
			                         <label>托运人</label>
			                         <select id="tuoyrs" name="tuoyrs" class="form-control select2" style="width:300px;" multiple="multiple" data-placeholder="请选择托运人" style="width:220px;height:25px;" >
				                  	</select>
			                       </div>
			                       <a onclick="change('chooseTuoyr1','chooseTuoyr',10)">删除</a>
			                  </div>
			   			</c:otherwise>
                  </c:choose>
                  <br/><br/><br/><br/>
                  </div>
                  <div class="read-more_out" >
                     <div id="read-more"></div>
                  </div>
                  <script type="text/javascript">
					  $(function(){
						  var slideHeight = 0; // px
						  var defHeight = $('#wrap5').height();
						  if(defHeight >= slideHeight){
							  $('#wrap5').css('height' , slideHeight + 'px');
							  $('#read-more').append('<a href="#">更多选项 +</a>');
							  $('#read-more a').click(function(){
								  var curHeight = $('#wrap5').height();
								  if(curHeight == slideHeight){
									  $('#wrap5').animate({
										height: defHeight
									  }, "normal");
									  $('#read-more a').html('点击隐藏 -');
									  $('#gradient').fadeOut();
								  }else{
									  $('#wrap5').animate({
										height: slideHeight
									  }, "normal");
									  $('#read-more a').html('更多选项 +');
									  $('#gradient').fadeIn();
								  }
								  return false;
							  });		
						  }
					  });
					  </script>
                </div>
                <!--条件选择结束 已选条件开始-->
                <h4>已选条件</h4>
                <div class="wuliu_search_head" style="line-height:25px;font-size:15px">
                &nbsp;&nbsp;${chooseStr}
                </div>
            </div>
          </div>
          <!-- /.box -->
          <div class="box  box-default">
              <div class="box-body">
                <h4><c:if test="${searchType eq 'sub'}">明细</c:if><c:if test="${searchType eq 'month'}">分月</c:if>数据表(注：车数以辆为单位，吨数以万吨为单位，默认显示最近一个月数据)</h4>
                <!-- 日期筛选控件参考 http://mta.qq.com/mta/data/device/resolution -->
                <div class="hd pd">
                <input type="hidden" value='${timeFlg}' name="timeFlg" id ="timeFlg"/>
                    <div class="gui-filter" id="quickTimeDiv">
                        <span class="tit">时间：</span>
                        <c:choose>
                        	<c:when test="${timeFlg eq 'aRecent90Days'}">
		                        <a href="javascript:" onclick="changTime(this);" class="current"  id="aRecent90Days">年</a>
		                        <a href="javascript:" onclick="changTime(this);" id="aRecent30Days">季度</a>
		                        <a href="javascript:" onclick="changTime(this);" id="aRecent7Days">月</a>
                        	</c:when>
                        	<c:when test="${timeFlg eq 'aRecent30Days'}">
		                        <a href="javascript:" onclick="changTime(this);" id="aRecent90Days">年</a>
		                        <a href="javascript:" onclick="changTime(this);" class="current" id="aRecent30Days">季度</a>
		                        <a href="javascript:" onclick="changTime(this);" id="aRecent7Days">月</a>
                        	</c:when>
                        	<c:when test="${timeFlg eq 'aRecent7Days'}">
		                        <a href="javascript:" onclick="changTime(this);" id="aRecent90Days">年</a>
		                        <a href="javascript:" onclick="changTime(this);" id="aRecent30Days">季度</a>
		                        <a href="javascript:" onclick="changTime(this);" class="current"  id="aRecent7Days">月</a>
                        	</c:when>
                        	<c:otherwise>
                        		<a href="javascript:" onclick="changTime(this);"  id="aRecent90Days">年</a>
		                        <a href="javascript:" onclick="changTime(this);"  id="aRecent30Days">季度</a>
		                        <a href="javascript:" onclick="changTime(this);"  id="aRecent7Days">月</a>
							</c:otherwise>
                        	
                        </c:choose>
                    </div>
                  <div class="gui-toolbar">
                     <div class="gui-select" id="input_trigger">
                       <input type="text" readonly="readonly" style="width: 200px" onpropertychange="inputChang();" name="reservation" id="reservation" class="form-control" value="${chooseDate}" /> 
                     </div>
                    </div>
                    <script type="text/javascript">
                    $(function(){
			           	  $('#reservation').daterangepicker(null, function(start, end, label) {
			           		  document.getElementById("timeFlg").value="0";
			           		  submitSum("form","${searchType}");
		                     //console.log(start.toISOString(), end.toISOString(), label);
		                  });
		              });
                    function changTime(obj){
                    	var subNav_active = $(".current");
                    	subNav_active.removeClass("current");
                   		obj.className="current";
                   		document.getElementById("timeFlg").value=obj.id;
                   		document.getElementById("reservation").value="";
                   		submitSum("form","${searchType}");
                    }
               </script>
                </div>
                
              </div>
              <div class="box-body">
                 <table id="dataTab" class="table table-bordered table-hover">
                       <thead>
	                      <tr>
	                      <th>年份</th>
	                      <th>月份</th>
	                      <c:choose>
	                        	<c:when test="${fahljFlg eq '1'}"> 
	                        		<th>发货路局</th>
							   </c:when>  
							   <c:otherwise>
							   		<th style="display: none;">发货路局</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${daojFlg eq '1'}">
	                        		<th>到货路局</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">到货路局</th>
							   </c:otherwise>
	                        </c:choose>
	                      	<c:choose>
	                        	<c:when test="${fazFlg eq '1'}">
	                        		<th>发运站点</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">发运站点</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${daozFlg eq '1'}">
	                        		<th>到达站点</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">到达站点</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${fasdqFlg eq '1'}">
	                        		<th>发送地区</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">发送地区</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${daoddqFlg eq '1'}">
	                        		<th>到站所属省</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">到站所属省</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${shiFlg eq '1'}">
	                        		<th>到站所属市</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">到站所属市</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${shouhrFlg eq '1'}">
	                        		<th>收货人</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">收货人</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${tuoyrFlg eq '1'}">
	                        		<th>托运人</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">托运人</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${wanccsFlg eq '1'}">
	                        		<th>完成车数</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">完成车数</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${wancdsFlg eq '1'}">
	                        		<th>完成吨数</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">完成吨数</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${hangy1Flg eq '1'}">
	                        		<th>所属行业</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">所属行业</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${hangy2Flg eq '1'}">
	                        		<th>行业细分</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">行业细分</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${huowmcFlg eq '1'}">
	                        		<th>货物名称</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">货物名称</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${shoulcsFlg eq '1'}">
	                        		<th>受理车数</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">受理车数</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${shouldsFlg eq '1'}">
	                        		<th>受理吨数</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">受理吨数</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${xuqcsFlg eq '1'}">
	                        		<th>需求车数</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">需求车数</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:choose>
	                        	<c:when test="${xuqdsFlg eq '1'}">
	                        		<th>需求吨数</th>
	                        	</c:when>
	                            <c:otherwise>
	                            	<th style="display: none;">需求吨数</th>
							   </c:otherwise>
	                        </c:choose>
	                        <c:if test="${monthFlg eq '1'}">
	                            <th>完成车数同比</th>
	                            <th>完成车数环比</th>
	                        </c:if>
	                      </tr>
                    	</thead>
                    	<tbody>
	                      <c:forEach items="${tablist}" var="li">
	                      	 <tr>
	                      	 <td>${li.nianf}</td>
	                      	 <td>${li.yuef}</td>
	                      	    <c:choose>
		                        	<c:when test="${fahljFlg eq '1'}"> 
		                        		<td>${li.luj}</td>
		                        	 </c:when>  
								   <c:otherwise>
								   		<td style="display: none;">${li.luj}</td>
								   </c:otherwise>
		                        </c:choose>
		                        <c:choose>
		                        	<c:when test="${daojFlg eq '1'}">
		                        		<td>${li.daoj}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.daoj}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${fazFlg eq '1'}">
		                        		<td>${li.faz}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.faz}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${daozFlg eq '1'}">
		                        		<td>${li.daoz}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.daoz}</td>
								   </c:otherwise>
		                        </c:choose>
		                        <c:choose>
		                        	<c:when test="${fasdqFlg eq '1'}">
		                        		<td>${li.fazshiqm}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.fazshiqm}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${daoddqFlg eq '1'}">
		                        		<td>${li.daoddq}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.daoddq}</td>
								   </c:otherwise>
		                        </c:choose>
		                        <c:choose>
		                        	<c:when test="${shiFlg eq '1'}">
		                        		<td>${li.daozshiqm}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.daozshiqm}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${shouhrFlg eq '1'}">
		                        		<td>${li.shouhr}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.shouhr}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	 <c:choose>
		                        	<c:when test="${tuoyrFlg eq '1'}">
		                        		<td>${li.tuoyr}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.tuoyr}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${wanccsFlg eq '1'}">
		                        		<td>${li.wanccs}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.wanccs}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${wancdsFlg eq '1'}"> 
		                        		<td>${li.wancds}</td>
		                        	 </c:when>  
								   <c:otherwise>
								   		<td style="display: none;">${li.wancds}</td>
								   </c:otherwise>
		                        </c:choose>
		                        <c:choose>
		                        	<c:when test="${hangy1Flg eq '1'}">
		                        		<td>${li.hangy1}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.hangy1}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${hangy2Flg eq '1'}">
		                        		<td>${li.hangy2}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.hangy2}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${huowmcFlg eq '1'}">
		                        		<td>${li.huowmc}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.huowmc}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${shoulcsFlg eq '1'}">
		                        		<td>${li.shoulcs}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.shoulcs}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${shouldsFlg eq '1'}">
		                        		<td>${li.shoulds}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td  style="display: none;">${li.shoulds}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${xuqcsFlg eq '1'}">
		                        		<td>${li.xuqcs}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.xuqcs}</td>
								   </c:otherwise>
		                        </c:choose>
	                        	<c:choose>
		                        	<c:when test="${xuqdsFlg eq '1'}">
		                        		<td>${li.xuqds}</td>
		                        	</c:when>
		                            <c:otherwise>
		                            	<td style="display: none;">${li.xuqds}</td>
								   </c:otherwise>
		                        </c:choose>
		                        <c:if test="${monthFlg eq '1'}">
		                        <td>
			                        <c:if test="${li.tb lt 0}">
	                   		           <font color="green">${li.tb}%</font>
	                   				</c:if>
	                   				<c:if test="${li.tb ge 0}">
	                   				  <font color="red">${li.tb}%</font>
	                   				</c:if>
                   				</td>
                   				<td>
			                        <c:if test="${li.hb lt 0}">
	                   		           <font color="green">${li.hb}%</font>
	                   				</c:if>
	                   				<c:if test="${li.hb ge 0}">
	                   				  <font color="red">${li.hb}%</font>
	                   				</c:if>
                   				</td>
	                        	</c:if>
	                        </tr>
	                      </c:forEach>
                    	</tbody>
                 </table>
              </div>
           </div>
        </div>
         <script type="text/javascript">
			//===========================点击展开关闭效果====================================
			function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){
			var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
			var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
			var openTip = oOpenTip || "";
			var shutTip = oShutTip || "";
			if(targetObj.style.display!="none"){
			   if(shutAble) return;
			   targetObj.style.display="none";
			   if(openTip  &&  shutTip){
				sourceObj.innerHTML = shutTip; 
			   }
			} else {
			   targetObj.style.display="block";
			   if(openTip  &&  shutTip){
				sourceObj.innerHTML = openTip; 
			   }
			}
			}
		</script>
        <!-- /.content -->
        <!-- 8.23 物流查询新页面 结束 -->
  </form>
  </div><!-- /.content-wrapper -->
</div> 

 
</body>
</html>
